const koa = require("koa");
const app =  new koa();
app.use(async ctx=>{
    let start = ctx.query.start;
    const data = await require("./server")(start);
    // 3.返回数据给前台
    ctx.body = {
        code:200,
        result:data,
        total:data.length
    }
})
app.listen(4000);